package com.faner.fast.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

/**
 * description: PageDTO
 * date: 2020/11/25 10:34
 * author: faner
 */
@ApiModel(value = "基础分页类")
@Setter
@Getter
public class PageDTO {

    @ApiModelProperty(value = "当前页")
    @Min(value = 1, message = "{page.number.min}")
    private Long pageNum = 1l;

    @ApiModelProperty(value = "每页数量")
    @Min(value = 1, message = "{page.count.min}")
    @Max(value = 30, message = "{page.count.max}")
    private Long pageSize = 10l;

}
